<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>管理</title>
	<!-- Tell the browser to be responsive to screen width -->
	<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
	<!-- Bootstrap 3.3.6 -->
	<link rel="stylesheet" href="${siteurl}bootstrap/css/bootstrap.min.css">
	<!-- Font Awesome -->
	<link rel="stylesheet" href="${siteurl}plugins/FontAwesome/css/font-awesome.min.css">
	<!-- Ionicons -->
	<link rel="stylesheet" href="${siteurl}plugins/ionicons201/css/ionicons.min.css">
	<!-- Theme style -->
	<link rel="stylesheet" href="${siteurl}dist/css/AdminLTE.min.css">
	<!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
	<link rel="stylesheet" href="${siteurl}dist/css/skins/_all-skins.min.css">

	<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
	<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
	<![endif]-->
	[#include "/admin/common/commons.html"]

	<!-- jQuery 2.2.3 -->
	<script src="${siteurl}plugins/jQuery/jquery-2.2.3.min.js"></script>
	<!-- Bootstrap 3.3.6 -->
	<script src="${siteurl}bootstrap/js/bootstrap.min.js"></script>
	<!-- SlimScroll -->
	<script src="${siteurl}plugins/slimScroll/jquery.slimscroll.min.js"></script>
	<!-- FastClick -->
	<script src="${siteurl}plugins/fastclick/fastclick.js"></script>
	<!-- AdminLTE App -->
	<script src="${siteurl}dist/js/adminlte.min.js"></script>
	<!-- AdminLTE for demo purposes -->
	<script src="${siteurl}dist/js/demo.js"></script>
	<script src="${siteurl}dist/js/list.js"></script>

	<link rel="stylesheet" href="${siteurl}plugins/bootstrap-datepicker/css/bootstrap-datepicker3.css">
	<script src="${siteurl}plugins/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
	<script src="${siteurl}plugins/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
	<script src="${siteurl}dist/js/knockout-3.4.2.js"></script>
	<link rel="stylesheet" href="${siteurl}plugins/sweetalert/sweetalert.css">
	<script src="${siteurl}plugins/sweetalert/sweetalert.min.js"></script>
	[#include "/admin/tenant/common.html"]

</head>
<body class="hold-transition skin-blue sidebar-mini">
<!-- Site wrapper -->
<div class="wrapper">

	<header class="main-header">
		<!-- Header Navbar: style can be found in header.less -->
		[#include "/admin/common/nav.html"]
	</header>

	<!-- =============================================== -->

	<!-- Left side column. contains the sidebar -->
	<aside class="main-sidebar">
		<!-- sidebar: style can be found in sidebar.less -->
		<section class="sidebar">
			[@user_panel /]
			<!-- search form -->
			[@sidebar_form /]
			<!-- /.search form -->
			<!-- sidebar menu: : style can be found in sidebar.less -->
			<ul class="sidebar-menu" data-widget="tree">
				<li class="header">主面板</li>
				[@menustag id=1]
				[#list list as item]
				[@menu item "1,54,56"]
				[/@menu]
				[/#list]
				[/@menustag]
			</ul>
		</section>
		<!-- /.sidebar -->
	</aside>

	<!-- =============================================== -->

	<!-- Content Wrapper. Contains page content -->
	<div class="content-wrapper">
		<!-- Content Header (Page header) -->
		<section class="content-header">
			<h1>
				会员详情
				<small></small>
			</h1>
		</section>
		<!-- Main content -->
		<section class="content">
			<!-- Default box -->
			<!-- /.box -->
			<div class="row">
				<!-- /.col -->
				<div class="col-md-12">
					<div class="nav-tabs-custom">
						[@tabnav index=2 id=so.id /]
						<div class="tab-content">
							<div class="tab-pane active" >
								<form id="rechargeForm" action="${siteurl}admin/tenant/model_save_member.htm" method="post">
									<input type="hidden" name="tenant" value="${(so.id)!'-1'}">

									<div class=" box box-body box-solid">
										<div class="col-xs-2 ">
										</div>
										<div class="col-xs-10 " style="padding-left: 0;">
											<button type="submit" name="search" class="btn btn-primary pull-right">
												<i class="fa fa-cny"></i> 添加
											</button>
											<div class="col-xs-2 pull-right">
												<input required="required" name="password"  maxlength="10" class="form-control" placeholder="密码" type="text">
											</div>
											<div class="col-xs-2 pull-right">
												<input required="required" name="username"  maxlength="10" class="form-control" placeholder="账号" type="text">
											</div>
											<div class="col-xs-2 pull-right">
												<input required="required" name="name"  maxlength="10" class="form-control" placeholder="姓名" type="text">
											</div>
										</div>

									</div>
								</form>
								<form id="listForm" action="${siteurl}admin/tenant/view_accounts.htm" method="post">
									<input type="hidden" name="id" value="${id!'-1'}">
									<div class="box box-solid">
										<div class="box-body table-responsive no-padding">
											<table class="table table-bordered table-hover dataTable">
												<thead>
												<tr role="row">
													<td class="col-xs-2 text-center">姓名</td>
													<td class="col-xs-2 text-center">账号</td>
													<td class="col-xs-2 text-center">时间</td>
													<td class="col-xs-6 text-center">备注</td>
												</tr>
												</thead>
												<tbody>
												[#if list??]
												[#list list as item]
												<tr id="trr${item.id}">
													<td class="text-center">${(item.member.name)!""}</td>
													<td class="text-center">${(item.member.phone)!""}</td>
													<td class="text-center">${item.addDate!""}</td>
													<td class="text-center"></td>
												</tr>
												[/#list]
												[/#if]
												</tbody>
											</table>
										</div>
									</div>
								</form>
							</div>
							<!-- /.tab-pane -->
						</div>
						<!-- /.tab-content -->
					</div>
					<!-- /.nav-tabs-custom -->
				</div>
				<!-- /.col -->
			</div>
		</section>
		<!-- /.content -->
	</div>
	<!-- /.content-wrapper -->

	[#include "/admin/common/footer.html"]

	<!-- Control Sidebar -->
	[#include "/admin/common/aside.html"]

	<!-- /.control-sidebar -->
	<!-- Add the sidebar's background. This div must be placed
         immediately after the control sidebar -->
	<div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->



</body>
</html>
